<?php $this->load->view('header') ?>

<!-- CONTENT -->
<div id="content">
<div class="column full">
		
		<div class="box">
		<div class="box-header">History Akun</div>
		<div class="box-content">
        <?php echo isAccess('akuntansi','akunRincian','view') ? anchor('akuntansi/akunHistory/view/year/'.$uri_to_assoc['year'].'/month/'.$uri_to_assoc['month'].'/tipe/'.$uri_to_assoc['tipe'], '<span class="icon_text preview"></span>Daftar History Akun', 'class="button white"') : ''; ?>
        <br /><br />      
        
            <?php if (isset($errorMessage)) : ?>
            	<div class="notification <?php echo ((isset($isSuccess) && $isSuccess) ? 'success' : 'error');?>"><?php echo $errorMessage; ?></div>
	        <?php endif; ?>    	
	        
	        <?php //if (!(isset($isSuccess) && $isSuccess)) : ?>
            <?php  echo form_open('akuntansi/akunHistory/edit/year/'.$uri_to_assoc['year'].'/month/'.$uri_to_assoc['month'].'/tipe/'.$uri_to_assoc['tipe'].'/id/'.get_data($uri_to_assoc,'id').'/time/' . time(),array('name'=>'formAddAkunRincian','id'=>'formAddAkunRincian','class'=>'frModalLoad'),array('kirim'=>'kirim')); ?>
            <table>
            	<tr>
                    <td width="150"><br />Periode</td>
                    <td>
                        <br />
                        <b><?php echo monthName($dataEdit['historyPeriodeBulan'])?> <?php echo get_data($dataEdit,'historyPeriodeTahun')?></b>
                    </td>
                </tr>
                <tr>
                    <td><br />Tipe</td>
                    <td>
                        <br />
                        <b><?php echo get_data($dataEdit,'akunTipeNama')?></b>
                    </td>
                </tr>
                <tr>
                    <td><br />Kode</td>
                    <td>
                        <br />
                        <b><?php echo get_data($dataEdit,'akunKode')?></b>
                    </td>
                </tr>
                <tr>
                    <td><br />Akun</td>
                    <td>
                        <br />
                        <b><?php echo get_data($dataEdit,'akunNama')?></b>
                    </td>
                </tr>
                <tr>
                    <td><br />Saldo</td>
                    <td>
                        <br />
                        Rp. <?php echo form_input(array('name'=>'historySaldo','value'=>get_data($dataEdit,'historySaldo'), 'id'=>'historySaldo', 'class'=> 'form-field full'));?>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>
                        <br /><?php echo form_submit('submit','Simpan', 'class="button themed"');?>
                    </td>
                </tr>
            </table>
            </form>
            <br />
			<?php //endif;?>
			
          </div>
        </div>
      </div>
      <!-- End Widget-->
      
      <div class="clear"></div>
    </div>
  </div> 

<script src="<?php echo base_url();?>js/libs/jquery/mod/web/jquery.format-price.js" type="text/javascript"></script>
<script src="<?php echo base_url();?>js/libs/jquery/mod/web/jquery.alphanumeric.pack.js" type="text/javascript"></script>  
<script type="text/javascript">
<!--
jQuery(document).ready(function($){
	//Numeric
	$('#historySaldo').priceFormat({
	    prefix: '',
	    thousandsSeparator: ',',
	    centsSeparator: '',
	    centsLimit: 0
	});
});
//-->
</script>
<?php $this->load->view('footer') ?>